import http from "../api/axiosFun.js"

//获取图片分类
function get_img_category()
{
	let url = '/cms/image_category/get'
	return http.get(url).then(res=>{
		return res
	})
}
//更新图片分类
function update_img_category(data)
{
	let url = '/cms/image_category/update'
	return http.post(url,data).then(res=>{
		return res
	})
}

//添加图片分类
function add_img_category(data)
{
	let url = '/cms/image_category/insert'
	return http.post(url,data).then(res=>{
		return res
	})
}
//删除图片分类
function del_img_category(id)
{
	let url = '/cms/image_category/del?id='+id
	return http.put_show(url).then(res=>{
		return res
	})
}


function del_img(id)
{
	let url = '/cms/image/del?id='+id
	return http.put_show(url).then(res=>{
		return res
	})
}


export default{
	get_img_category,
	update_img_category,
	add_img_category,
	del_img_category,
	del_img
}